<?php
require_once ('conn.php');
$msg='n';
$id=$_POST['id'];//ID
if(mysql_query("UPDATE ci_invoice SET hxStateCode = 2 WHERE  id =".$id )){
	
//    $ci_invoice = mysql_fetch_row(mysql_query("select billNo,buId from ci_invoice where id=$id "));//订单号
//    $ci_contact = mysql_fetch_row(mysql_query("select number from ci_contact where id=".$ci_invoice[1]));//获得网点编号
//    $result=mysql_query("select * from ci_invoice_info where billNo ='".$ci_invoice[0]."'"); //每一个商品插入一行数据
//	$i=0;			
//	while($row=mysql_fetch_array($result)) 
//    {
//        $ci_goods = mysql_fetch_row(mysql_query("select number from ci_goods where id=".$row['invId']));//商品
//        mysql_query("UPDATE ci_wx_order_goods SET status = 2 WHERE  goodsNumber ='".$ci_goods[0]."' and customerNumber = $ci_contact[0] and and payStatus = 1" );
//        $i++;
//    }
    $msg='y';
}
echo $msg;die;
?>